package com.cskaoyan.market.controller.wx;

import com.cskaoyan.market.db.domain.MarketFeedback;
import com.cskaoyan.market.service.WxFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wx/feedback")
public class WxFeedBackController {
    @Autowired
    WxFeedbackService wxFeedbackService;
    @PostMapping("submit")
    public Object submit(@RequestBody MarketFeedback marketFeedback) {
        Object i=wxFeedbackService.submit(marketFeedback);
        return i;
    }
}
